//
//  BSSpriterData.h
//  Spriter_forCocs2d
//
//  Created by Yang Bean on 13/4/19.
//
//

#import <Foundation/Foundation.h>
#include "cocos2d.h"

@class BSFile;
@class BSAnimation;
@class BSMainLine;
@class BSKeyRef;
@interface BSSpriterData : NSObject
{
    NSMutableDictionary* m_folders;
    NSMutableDictionary* m_animations;
}
@property (retain) NSMutableDictionary* folders;
@property (retain) NSMutableDictionary* animations;




- (void)setSprite:(cocos2d::CCSprite*)sprite
  ActWithActArray:(cocos2d::CCArray*)array
           Repeat:(BOOL)isRepeat;
- (cocos2d::CCArray*)spriteArrayWithAniamtionName:(NSString*)name;
- (cocos2d::CCArray*)spriteArrayWithAniamtion:(BSAnimation*)animation;
- (cocos2d::CCArray*)spriteArrayWithAniamtion:(BSAnimation*)animation
    shield:(NSString*)shield
       hat:(NSString*)hat
    weapon:(NSString*)weapon
      race:(NSString*)race;
- (void)setAnimation:(BSAnimation*)animation
        toTimeLineId:(int)timelindId
              sprite:(cocos2d::CCSprite*)sprite
            isRepeat:(BOOL)isRepeat;
- (NSArray*)zOrdersWithTimelineID:(int)tlid inMainLine:(BSMainLine*)mainLine;
- (BSFile*)fileWithFolderId:(int)folderId fileid:(int)fileId;
- (BSAnimation*)animationWithAnimationId:(int)animId;
- (BSAnimation*)animationWithAnimationName:(NSString*)animName;
- (int)zOrderWithKeyId:(int)keyId timelineID:(int)tlid inMainLine:(BSMainLine*)mainLine;
- (int)zOrderWithKeyRef:(BSKeyRef*)keyRef timelineID:(int)tlid;
- (int)parentIdWithKeyId:(int)keyId timelineID:(int)tlid inMainLine:(BSMainLine*)mainLine;
@end


